package cn.liuyiyou.lean.es.repository;

import cn.liuyiyou.lean.es.domain.BCoreHatch;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface BCoreHatchRepository extends ElasticsearchRepository<BCoreHatch, String> {


    List<BCoreHatch> findByModelIdAndHandleIn(String modelId, List<String> handlers);

    List<BCoreHatch> findByHandleIn(List<String> handlers);

    List<BCoreHatch> findByModelIdAndHandle(String modelId, String handler);

    List<BCoreHatch> findByModelId(String modelId);
}
